package top.whysu.rongcloud.dto.http;

import top.whysu.rongcloud.constant.CodeConstant;
import top.whysu.rongcloud.entity.AbstractEntity;

/**
 * 响应信息
 */
public class Response<T> extends AbstractEntity {

    /**
     * 响应码 {@link CodeConstant}
     **/
    private Integer code;
    /**
     * 消息
     **/
    private String msg;
    /**
     * 消息体
     **/
    private T result;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }
}
